<?php 
	if (!isset($_GET['pg']) && $_GET['pg'] == ''){
		include DIR_MODULES . 'main/index.php';
	}
	elseif (isset($_GET['pg']) && $_GET['pg'] == 'categories'){
		include DIR_MODULES . 'categories/index.php';
	}
	elseif (isset($_GET['pg']) && $_GET['pg'] == 'contact'){
		include DIR_MODULES . 'contact/index.php';
	}
	elseif (isset($_GET['pg']) && $_GET['pg'] == 'sitemap'){
		include DIR_MODULES . 'sitemap/index.php';
	}
	elseif (isset($_GET['pg']) && $_GET['pg'] == 'pages'){
		include DIR_MODULES . 'pages/template.php';
	}
	elseif (isset($_GET['pg']) && $_GET['pg'] == 'search'){
		include DIR_MODULES . 'search/test.php';
	}
	elseif ($_GET['pg'] == 'offers'){
		include DIR_MODULES . 'offers/index.php';
	}
	elseif ($_GET['pg'] == 'news'){
		include DIR_MODULES . 'news/template.php';
	}
	elseif ($_GET['pg'] == 'top'){
		include DIR_MODULES . 'top5/template.php';
	}
	elseif ($_GET['pg'] == 'aboneaza'){
		include DIR_MODULES . 'newsletter/insert.php';
	}
        elseif ($_GET['pg'] == 'news_trends'){
            include DIR_MODULES . 'pages/news.php';
        }
        elseif ($_GET['pg'] == 'tops'){
            include DIR_MODULES . 'pages/top.php';
        }
?>